From 809dd7233f04318dfb2f92e1690b1815420e046d Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 15 May 2006 20:57:37 +0000 Subject: [PATCH] Add TPO test cases from Curt. --- gpsbabel/reference/tpo-sample3.gpx | 500 +++++++++++++++++++++++++++++ gpsbabel/reference/tpo-sample3.tpo | Bin 0 -> 7442 bytes gpsbabel/testo | 18 +- 3 files changed, 514 insertions(+), 4 deletions(-) create mode 100644 gpsbabel/reference/tpo-sample3.gpx create mode 100644 gpsbabel/reference/tpo-sample3.tpo diff --git a/gpsbabel/reference/tpo-sample3.gpx b/gpsbabel/reference/tpo-sample3.gpx new file mode 100644 index 000000000..1d38e89b8 --- /dev/null +++ b/gpsbabel/reference/tpo-sample3.gpx @@ -0,0 +1,500 @@ + + + + + 2428.000000 + 001 + 001 + 001 + + + 2439.000000 + 002 + 002 + 002 + + + 2462.000000 + 003 + WITH MESSAGE + WITH MESSAGE + + + 2559.000000 + GPSRTE0 + GPSRTE0 + GPSRTE0 + + + 2582.000000 + GPSRTE1 + GPSRTE1 + GPSRTE1 + + + 2586.000000 + GPSRTE2 + GPSRTE2 + GPSRTE2 + + + 2612.000000 + GPSRTE3 + GPSRTE3 + GPSRTE3 + + + 2606.000000 + GPSRTE4 + GPSRTE4 + GPSRTE4 + + + 2632.000000 + GPSRTE5 + GPSRTE5 + GPSRTE5 + + + 2627.000000 + GPSRTE6 + GPSRTE6 + GPSRTE6 + + + 2622.000000 + GPSRTE7 + GPSRTE7 + GPSRTE7 + + + 2639.000000 + GPSRTE8 + GPSRTE8 + GPSRTE8 + + + 2599.000000 + GPSRTE9 + GPSRTE9 + GPSRTE9 + + + NOTE 1 + This is a note that has a photo attached + This is a note that has a photo attached + w:\photo.jpg + + + NOTE 2 + 2nd note, with link to a web page + 2nd note, with link to a web page + http://www.defghi.org + + + NOTE 3 + 3rd note, with a link to a document + 3rd note, with a link to a document + c:document.txt + + + SYM 1 + SYM 1 + SYM 1 + + + SYM 2 + SYM 2 + SYM 2 + + + SYM 3 + SYM 3 + SYM 3 + + + SYM 4 + SYM 4 + SYM 4 + + + TXT 1 + test + test + + + TXT 2 + test2 with new style + test2 with new style + + + TXT 3 + 2.55 miles + 2.55 miles + + + RTE 1 + 1 + + 2559.000000 + GPSRTE0 + + + 2582.000000 + GPSRTE1 + + + 2586.000000 + GPSRTE2 + + + 2612.000000 + GPSRTE3 + + + 2606.000000 + GPSRTE4 + + + 2632.000000 + GPSRTE5 + + + 2627.000000 + GPSRTE6 + + + 2622.000000 + GPSRTE7 + + + 2639.000000 + GPSRTE8 + + + 2599.000000 + GPSRTE9 + + + + crazy route 4.49 miles long +1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + TRK 2 +2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + TRK 3 +3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gpsbabel/reference/tpo-sample3.tpo b/gpsbabel/reference/tpo-sample3.tpo new file mode 100644 index 0000000000000000000000000000000000000000..af5065a45f21e53e1351db458cf04177fc801f80 GIT binary patch literal 7442 zcmeI1eQXrR6~O1t_p!HoJA3xp2N*~enxq)f!yktM2SRK(J{;Rv_5lVVhqZ6k>z2t{hssA{XGv~s25QeyYb z?t+(t{?)(I-ipJ&dGF1e_c1$%hfsWL=hj8ic14Xy4UuT10hONrw+j5o{e{Wcg-%1T zk9#|Eno@wM1E|K2P#M}Yk0WotVu%v*Er};n1quGhQWmTvEh%eKQl{g4GN@0vp{CuYDDqH#V0d`?NZHKAnct#N>&7h`zc3Xk1zM`W|7Hc={5eM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)C3b2qaPupnY8+yBCg#SO3Hso`OI+|DuckoPdhl5k~u} z7xLt@8h!S)pn_A4x)?UjuHebp4qa@Nm)0~rU}%FpIdU%yW83yDU0Rdb6OYCFcN_Gj zk-nmfJ2P@D))?zcHyN!DV{-ByU2Mwa;>NKbU@{TW#V^MYV$j<8^mX;0@8HPd3nStr z94=SjL%$CL^Z=mW$jE(ghBM1^5>)?y&t_1u@TsKgdh245p6uo~9C97s3w^n$i=W!w z7TVs}`pAkE)+qp|6M6#Hc0t-3m?i6TnY>(p|7f5mk5n6p)>1PVYf@dq%1CWAp$w>s zQgDyo&5_W^h`9JXM<)KI!;yp0)ddLgkVb879a{4sN1~7E;SC20B^2BJ+#YZQLbq&Zo%eLua@3mrG6wN)slgo9wIR9#~ zZUs90M>uI7(8V5)rzn<2^zIx?7A(}osJmFV65YQQlPA~fVjG<3H|MYlEqE4Q=`hUm k7wcA|Yd^tcvRN0`UAYm903D^xgNOBaeSRhY{|M**4ev-gNdN!< literal 0 HcmV?d00001 diff --git a/gpsbabel/testo b/gpsbabel/testo index ba76ef64b..494da7cc0 100755 --- a/gpsbabel/testo +++ b/gpsbabel/testo @@ -213,11 +213,21 @@ compare ${TMPDIR}/tpg.mxf ${TMPDIR}/topo.mxf # tpo-sample1.tpo, tpo-sample1.gpx, tpo-sample2.gpx, and # tpo-sample2.tpo. These are used to check the conversion to/from # TPO format. +# +# Version 2.x tests rm -f ${TMPDIR}/tpo-sample1.gpx ${TMPDIR}/tpo-sample2.tpo -${PNAME} -t -i tpo -f ${REFERENCE}/track/tpo-sample1.tpo -o gpx -F ${TMPDIR}/tpo-sample1.gpx -compare ${TMPDIR}/tpo-sample1.gpx ${REFERENCE}/track/tpo-sample1.gpx -#${PNAME} -t -i gpx -f ${REFERENCE}/track/tpo-sample2.gpx -o tpo -F ${TMPDIR}/tpo-sample2.tpo -#bincompare ${TMPDIR}/tpo-sample2.tpo ${REFERENCE}/track/tpo-sample2.tpo +${PNAME} -t -i tpo -f reference/track/tpo-sample1.tpo -o gpx -F ${TMPDIR}/tpo-sample1.gpx +compare ${TMPDIR}/tpo-sample1.gpx reference/track/tpo-sample1.gpx +#${PNAME} -t -i gpx -f reference/track/tpo-sample2.gpx -o tpo -F ${TMPDIR}/tpo-sample2.tpo +#bincompare ${TMPDIR}/tpo-sample2.tpo reference/track/tpo-sample2.tpo +# +# Version 3.x tests. Remove the timestamp from the generated file +# so that the compare will succeed. +rm -f ${TMPDIR}/tpo-sample3.gpx ${TMPDIR}/tpo-sample3.gpx2 +${PNAME} -t -r -w -i tpo -f reference/tpo-sample3.tpo -o gpx -F ${TMPDIR}/tpo-sample3.gpx +# Remove the timestamp +grep -v time <${TMPDIR}/tpo-sample3.gpx >${TMPDIR}/tpo-sample3.gpx2 +compare ${TMPDIR}/tpo-sample3.gpx2 reference/tpo-sample3.gpx # OZI (OziExplorer 1.1) file format rm -f ${TMPDIR}/oz.wpt ${TMPDIR}/ozi.wpt -- 2.30.2